package com.mxin.network.interceptor;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Response;

public class CommonHeaderInterceptor implements Interceptor {

//    public static final String ACCOUNT = "X-Access-Account";
//    public static final String TOKEN = "X-Access-Token";

    @Override
    public Response intercept(Chain chain) throws IOException {
//        Request request = chain.request();
//        Request.Builder builder = request.newBuilder();
//        String account = App.getInstance().getAccount();
//        String token = App.getInstance().getToken();
//        if(!TextUtils.isEmpty(account)){
//            builder.addHeader(ACCOUNT, account);
//        }
//        if(!TextUtils.isEmpty(token)){
//            builder.addHeader(TOKEN, token);
//        }
//        Request newRequest = builder.build();
//        return chain.proceed(newRequest);
        return null;
    }

}
